<?php
defined ( 'IN_ADMIN' ) or exit ( 'No permission resources.' );
$show_dialog = 1;
include $this->admin_tpl ( 'header', 'admin' );
?>
<script>
function mScroll(id){
	$("html,body").stop(true);
	$("html,body").animate({scrollTop: $("#"+id).offset().top}, 1000);
	} 
</script>
<div class="content-menu ib-a blue line-x">
	&nbsp;&nbsp;&nbsp;&nbsp;
	<a class="add" href="#" onclick="mScroll('doctor_man')"><em>创业导师管理  </em> </a>
	<a class="add" href="#" onclick="mScroll('people_man')"><em>华创人物管理 </em> </a>
	<a class="add" href="#" onclick="mScroll('knowledge_man')"><em>创业知识管理 </em> </a>
</div>
<form method="post" name="frmlist" action="">
	<div class="table-list">
		<table width="100%" cellspacing="0">
			<thead>
				<tr>
					<th align="left" colspan="6">
						投资人管理 
						| 
						<a href="/index.php?m=hchstory&c=crud&a=myadd&assort_type_id=<?php echo $institutionTpyeId;?>">
							<em>新增投资人信息</em>
						</a> 
					</th>
				</tr>
				<tr>
					<th width="30" align="center">&nbsp; </th>
					<th align="center">名称</th>
					<th align="center">标题</th>
					<th align="center">内容摘要</th>
					<th align="center">管理操作</th>
				</tr>
			</thead>
			<?php
			if (is_array ( $institution ) && count ( $institution ) > 0) {
				foreach ($institution as $institutionItem){
			?>
          	<tr>
				<td align="center" width="35"><input type="checkbox" name="id[]"
					value="<?php echo $institutionItem['id']?>"></td>
				<td align="center" width="10%"><?php echo $institutionItem['name']?></a></td>
				<td align="center" width="10%"><?php echo $institutionItem['title']?></td>
				<td align="center"><?php echo $institutionItem['short_content'];?></td>
				<td align="center" width="10%"><a
					href='/index.php?m=hchstory&c=crud&a=myedit&id=<?php echo $institutionItem['id'] ?>'>编辑</a>
					| <a
					href="/index.php?m=hchstory&c=crud&a=myview&id=<?php echo $institutionItem['id'] ?>">查看</a>
					| <a
					href="/index.php?m=hchstory&c=crud&a=mydelone&id=<?php echo $institutionItem['id'] ?>"
					onclick="return confirm('确认删除记录吗？')">删除</a></td>
			</tr>
			<?php
				}	
			}else{
			?>
			<tr>
				<td align="center"colspan="5">没有查询到数据。</td>
			</tr>
			<?php }?>
			<thead>
				<tr>
					<th align="left" colspan="6">
						<label name="doctor_man" id="doctor_man">创业导师管理 </label>
						| 
						<a href="/index.php?m=hchstory&c=crud&a=myadd&assort_type_id=<?php echo $doctorTpyeId;?>">
							<em>新增创业导师信息</em>
						</a>
					</th>
				</tr>
				<tr>
					<th width="30" align="center">&nbsp; </th>
					<th align="center">名称</th>
					<th align="center">标题</th>
					<th align="center">内容摘要</th>
					<th align="center">管理操作</th>
				</tr>
			</thead>
			<?php
			if (is_array ( $doctorList ) && count ( $doctorList ) > 0) {
				foreach ($doctorList as $doctorItem){
			?>
          	<tr>
				<td align="center" width="35"><input type="checkbox" name="id[]"
					value="<?php echo $doctorItem['id']?>"></td>
				<td align="center" width="10%"><?php echo $doctorItem['name']?></a></td>
				<td align="center" width="10%"><?php echo $doctorItem['title']?></td>
				<td align="center"><?php echo $doctorItem['short_content'];?></td>
				<td align="center" width="10%"><a
					href='/index.php?m=hchstory&c=crud&a=myedit&id=<?php echo $doctorItem['id'] ?>'>编辑</a>
					| <a
					href="/index.php?m=hchstory&c=crud&a=myview&id=<?php echo $doctorItem['id'] ?>">查看</a>
					| <a
					href="/index.php?m=hchstory&c=crud&a=mydelone&id=<?php echo $doctorItem['id'] ?>"
					onclick="return confirm('确认删除记录吗？')">删除</a></td>
			</tr>
			<?php
				}	
			}else{
			?>
			<tr>
				<td align="center"colspan="5">没有查询到数据。</td>
			</tr>
			<?php }?>
			<thead>
				<tr>
					<th align="left" colspan="6">
						<label name="people_man" id="people_man">华创人物管理 </label>
						| 
						<a href="/index.php?m=hchstory&c=crud&a=myadd&assort_type_id=<?php echo $peopleTpyeId;?>">
							<em>新增华创人物信息</em>
						</a>
					</th>
				</tr>
				<tr>
					<th width="30" align="center">&nbsp; </th>
					<th align="center">名称</th>
					<th align="center">标题</th>
					<th align="center">内容摘要</th>
					<th align="center">管理操作</th>
				</tr>
			</thead>
			<?php
			if (is_array ( $peopleList ) && count ( $peopleList ) > 0) {
				foreach ($peopleList as $peopleItem){
			?>
          	<tr>
				<td align="center" width="35"><input type="checkbox" name="id[]"
					value="<?php echo $peopleItem['id']?>"></td>
				<td align="center" width="10%"><?php echo $peopleItem['name']?></a></td>
				<td align="center" width="10%"><?php echo $peopleItem['title']?></td>
				<td align="center"><?php echo $peopleItem['short_content'];?></td>
				<td align="center" width="10%"><a
					href='/index.php?m=hchstory&c=crud&a=myedit&id=<?php echo $peopleItem['id'] ?>'>编辑</a>
					| <a
					href="/index.php?m=hchstory&c=crud&a=myview&id=<?php echo $peopleItem['id'] ?>">查看</a>
					| <a
					href="/index.php?m=hchstory&c=crud&a=mydelone&id=<?php echo $peopleItem['id'] ?>"
					onclick="return confirm('确认删除记录吗？')">删除</a></td>
			</tr>
			<?php
				}	
			}else{
			?>
			<tr>
				<td align="center"colspan="5">没有查询到数据。</td>
			</tr>
			<?php }?>
			<thead>
				<tr>
					<th align="left" colspan="6">
						<label name="knowledge_man" id="knowledge_man">创业知识管理 </label>
						| 
						<a href="/index.php?m=hchstory&c=crud&a=myadd&assort_type_id=<?php echo $knowledgeTpyeId;?>">
							<em>新增创业知识</em>
						</a>
					</th>
				</tr>
				<tr>
					<th width="30" align="center">&nbsp; </th>
					<th align="center">名称</th>
					<th align="center">标题</th>
					<th align="center">内容摘要</th>
					<th align="center">管理操作</th>
				</tr>
			</thead>
			<?php
			if (is_array ( $knowledgeList ) && count ( $knowledgeList ) > 0) {
				foreach ($knowledgeList as $knowledgeItem){
			?>
          	<tr>
				<td align="center" width="35"><input type="checkbox" name="id[]"
					value="<?php echo $knowledgeItem['id']?>"></td>
				<td align="center" width="10%"><?php echo $knowledgeItem['name']?></a></td>
				<td align="center" width="10%"><?php echo $knowledgeItem['title']?></td>
				<td align="center"><?php echo $knowledgeItem['short_content'];?></td>
				<td align="center" width="10%"><a
					href='/index.php?m=hchstory&c=crud&a=myedit&id=<?php echo $knowledgeItem['id'] ?>'>编辑</a>
					| <a
					href="/index.php?m=hchstory&c=crud&a=myview&id=<?php echo $knowledgeItem['id'] ?>">查看</a>
					| <a
					href="/index.php?m=hchstory&c=crud&a=mydelone&id=<?php echo $knowledgeItem['id'] ?>"
					onclick="return confirm('确认删除记录吗？')">删除</a></td>
			</tr>
			<?php
				}	
			}else{
			?>
			<tr>
				<td align="center"colspan="5">没有查询到数据。</td>
			</tr>
			<?php }?>
			<tr>
				<td colspan="10"><input type="submit" class="button"
					name="submitdel" onClick="doDel()" value="删除" /></td>
			</tr>
			</tbody>
		</table>
	</div>
</form>
</body>
<script type="text/javascript">
function doDel(){
	if(confirm('确认删除记录吗？')){
		document.frmlist.action='/index.php?m=hchstory&c=crud&a=mydel';
		submitchk.submit();
	}
}
</script>
</html>